package cn.txm.pet.service.impl;

import cn.txm.basic.service.impl.BaseServiceImpl;
import cn.txm.pet.domain.Pet;
import cn.txm.pet.mapper.PetMapper;
import cn.txm.pet.service.IPetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class PetServiceImpl extends BaseServiceImpl<Pet> implements IPetService {
    @Autowired
    private PetMapper petMapper;


    /**
     * 后台管理:宠物批量上架
     * @param ids
     * @return
     */
    @Override
    @Transactional
    public void petshelves(List<Long> ids) {
        petMapper.petshelves(ids);
    }

    /**
     * 后台管理:宠物批量下架
     * @param ids
     * @return
     */
    @Override
    public void petnoshelves(List<Long> ids) {
        petMapper.petnoshelves(ids);
    }
}
